package edu.bw.config;

import org.springframework.context.annotation.*;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import java.sql.Connection;

@Configuration
@Import({DBConfig.class, TransactionConfig.class})
@ComponentScan("edu.bw")
@EnableAspectJAutoProxy
@EnableTransactionManagement
public class SpringConfig {
    @Bean("threadLocal")
    public ThreadLocal<Connection> threadLocal() {
        return new ThreadLocal<Connection>();
    }
}
